package com.example.microserviceapi.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p> 测试 Feign </p>
 *
 * @author Chris
 * @since 2022/11/15 16:41
 */
@FeignClient(name = "microservice-provider-sample", fallback = FeignDemoServiceImpl.class)
public interface FeignDemoService {

    @GetMapping("/demo/hello")
    String sayHello(@RequestParam("name") String name);

}
